package 字符串;

import java.util.Scanner;

public class 字符串跳步 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        int start = scanner.nextInt();
        int step = scanner.nextInt();
        for (int i = start; i < n.length(); i=i+step) {
            System.out.print(n.charAt(i));
        }
    }
}
